<?php
/**
 * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures
 * all the essential functionalities required for any enterprise.
 * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com
 *
 * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of
 * the GNU General Public License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along with this program;
 * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 * Boston, MA  02110-1301, USA
 *
 */
$styleSheet = "orange";

$GLOBALS['lang_Common_SortAscending'] = $lang_Common_SortAscending;
$GLOBALS['lang_Common_SortDescending'] = $lang_Common_SortDescending;

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link href="../../themes/<?php echo $styleSheet; ?>/css/style.css" rel="stylesheet" type="text/css"/>
<!--[if lte IE 6]>
<link href="../../themes/<?php echo $styleSheet; ?>/css/IE6_style.css" rel="stylesheet" type="text/css"/>
<![endif]-->
<!--[if IE]>
<link href="../../themes/<?php echo $styleSheet; ?>/css/IE_style.css" rel="stylesheet" type="text/css"/>
<![endif]-->
<script type="text/javascript" src="../../themes/<?php echo $styleSheet;?>/scripts/style.js"></script>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<script type="text/javascript" src="../../scripts/octopus.js"></script>
<script type="text/javascript" src="../../scripts/common.js"></script>
<script type="text/javascript" src="../../scripts/jquery/jquery.js"></script>
<script type="text/javascript">
	function add() {

	/*var cnt = document.GoodsRecord.EmpId;
	if(!(cnt.value == '') && !alpha(cnt) && !confirm('员工id不能为空')) {
		cnt.focus();
		return;
	}  if (cnt.value == '') {
		alert('<?php echo $lang_Error_LastNameEmpty?>');
		cnt.focus();
		return;
	}

	var cnt = document.GoodsRecord.Content;
	if(!(cnt.value == '') && !alpha(cnt) && !confirm('领取内容不能为空')) {
		cnt.focus();
		return;
	} else if (cnt.value == '') {
		alert('<?php echo $lang_Error_FirstNameEmpty?>');
		cnt.focus();
		return;
	}*/



	//document.GoodsRecord.sqlState.value = "NewRecord";
	document.standardView.submit();
}
	function clear_form() {
		document.standardView.loc_code.options[0].selected=true;
		document.standardView.loc_name.value='';
	}
	YAHOO.OrangeHRM.container.init();
</script>
<style>
.shownameclass{float:left;width:370px;height:150px;position: absolute;z-index:5000;background-color:#ffffff;left:70px;border:1px solid #ccc;overflow:auto;}
</style>
<?php $records = $records['row'];?>
<div class="formpage2col">
<form name="standardView" id="standardView" method="post" action="<?php echo $_SERVER['PHP_SELF']?>?oacode=oamange&action=addoamenu&s=save">
	<div class="outerbox">
		<div class="mainHeading"><h2>添加OA菜单</h2></div>
		<input type="hidden" name="mid" id="mid" value="<?php echo isset($records['mid']) ? $records['mid']:'';?>" />
        
		<label for="txttypname">菜单名称 <span class="required">*</span></label>
		<input type="text" name="typename" id="typename" class="formInputText" 
			value="<?php echo isset($records['typename']) ? $records['typename']:'';?>"/><br>
		<div id="ShowEmpName" class="shownameclass" style="display:none"><table id="tbname" width="350" border="0" cellspacing="0" cellpadding="0"></table></div>
		
		<br class="clear" />
		<label for="txtdescription" id="txtdescription">备注 </label>
		<textarea name="description" id="description" class="formInputText"  rows="5" cols="20"
			 /><?php echo isset($records['description']) ? $records['description']:'';?></textarea>
        
		<br class="clear" />
		<label for="txtdescription" id="txtdescription">附加1 </label>
		<textarea name="mood1" id="mood1" class="formInputText"  rows="5" cols="20"
			 /><?php echo isset($records['mood1']) ? $records['mood1']:'';?></textarea>
             
        <br class="clear" />
		<label for="txtdescription" id="txtdescription">附加2 </label>
		<textarea name="mood2" id="mood2" class="formInputText"  rows="5" cols="20"
			 /><?php echo isset($records['mood2']) ? $records['mood2']:'';?></textarea>
         <div>提示：自定义菜单按照班制的三级审核人员审核</div>   
        <br class="clear" />    
        <div class="formbuttons">
			<input type="button" class="savebutton" id="btnEdit" onclick="add(); return false;"
				onmouseover="moverButton(this);" onmouseout="moutButton(this);"
				value="<?php echo $lang_Common_Save;?>" title="<?php echo $lang_Common_Save;?>" />
			<input type="button" class="resetbutton" onclick="document.GoodsRecord.reset(); return false;"
				onmouseover="moverButton(this);" onmouseout="moutButton(this);"
				 value="<?php echo $lang_Common_Reset;?>" />
        </div>
	</div>
	<div class="requirednotice"><?php echo preg_replace('/#star/', '<span class="required">*</span>', $lang_Commn_RequiredFieldMark); ?>.</div>
	</form>
</div>
<script type="text/javascript">
//<![CDATA[
    if (document.getElementById && document.createElement) {
        roundBorder('outerbox');
    }
//]]>
</script>
